package com.my.test.thread.thread;

public class Visiable {

	
	private static boolean f = true;
	
	private static int num = 0;
	
	public static void main(String[] args) throws InterruptedException {
		
		new Thread (()->{
			while (f) {
				num++;
				System.out.println(num);
			}
			System.out.println(num);
		}).start();
		
		Thread.sleep(3000);
		new Thread (()->{
			f = false;
			System.out.println("==========");
		}).start();
		
		
		
	}

	
}
